package com.neuedu.wemall.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.util.Date;
/**
* Author lu
* Date  2025-09-08 15:17:25
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Alias("review")
@TableName(value = "review")
public class Review implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    *评价ID
    */
    @TableField(value = "id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
    * 评价会员ID
    */
    @TableField(value = "user_id")
    private Integer userId;
    /**
    * 评价商品ID
    */
    @TableField(value = "prod_id")
    private Integer prodId;
    /**
    * 内容
    */
    @TableField(value = "content")
    private String content;
    /**
    * 评价时间
    */
    @TableField(value = "create_time")
    private Date createTime;
    /**
    * 评价等级(A:很好;B:良好;C:一般;D:较差;E:差)
    */
    @TableField(value = "rating")
    private String rating;
    /**
    * 订单ID
    */
    @TableField(value = "order_id")
    private Integer orderId;
}